﻿using System.Data;
using System.Data.SqlClient;
using LoverMeeting.Model.Entity;

namespace LoverMeeting.DataBase.DataMappers
{
    public class LoverWeightMapper : IDataMapper<LoverWeight>
    {
        public LoverWeight GetData(IDataReader reader)
        {
            var entity = new LoverWeight
            {
                Id = int.Parse(reader["LoverWeightId"].ToString()),
                Description = reader["LoverWeightDescription"].ToString()
            };
            return entity;
        }

        public void SetParameter(SqlCommand command, LoverWeight entity)
        {
            throw new System.NotImplementedException();
        }

        public int GetRecordCount(IDataReader reader)
        {
            throw new System.NotImplementedException();
        }
    }
}
